<?php include'bdd/db.php' ?>
<?php  include 'partials/header.php'; ?>
<?php  include 'partials/includes.header.php'; ?>
<div class="container">
 <table class="table">
        <thead>
            <tr>
                <th>Nom de client </th>
                <th>Prénom de client</th>
                <th>Numéro de télephone</th>
                <th>Date de naissance</th>
				<th>Adresse</th>
				<th>Carte de crédit</th>
            </tr>
        </thead>
        <tbody>
		<?php    
					$sql="select * from client left join adresse on client.adresseId=adresse.adresseId";
					$select= $db->query($sql);
					while($row = $select->fetch()) {?>
			        <tr class="active">
                        <td><?php echo $row['clientNom']; ?></td>
						<td><?php echo $row['clientPrenom'];  ?></td>
						<td><?php echo $row['clientPhone'];  ?></td>
						<td><?php echo $row['clientdate'];  ?></td>
						<td><?php echo $row['adresseNum'].' '.$row['adresseNom'].' '.$row['adresseVille'].' '.$row['adresseCode'].' '.$row['adressePays'];  ?></td>
						<td><?php echo $row['creditcard']; } ?></td>
					</tr>
           
        </tbody>
    </table>
</div>	
</body>
<?php  include 'partials/footer.php'; ?>
</html> 

                             		                                		                                		                             		